<?php

/**
 * Description of PatientCardSessien
 *
 * @author Pavel Homolka
 */
use \Nette\Http\Session;

namespace AdminModule;

class PatientSession extends \Nette\Object {

    private $searchResult;
    private $curentPatient;
    private $familyAnamnesis;
    private $personalAnamnesis;
    private $SeizureAnamnesis;

    public function __construct(\Nette\Http\Session $session) {
	$this->searchResult = $session->getSection(__CLASS__);
	$this->curentPatient = $session->getSection(__CLASS__);
	$this->familyAnamnesis = $session->getSection(__CLASS__);
	$this->searchResult->setExpiration('+ 60minutes');
    }

    /**
     * Vysledek vyhledavani
     * @return array 
     */
    public function getSearchResult() {
	return $this->searchResult->getIterator()->getArrayCopy();
    }

    /**
     * Vysledek vyhledavani
     * @param type $idPatient
     * @param type $searchResult 
     */
    public function setSearchResult($idPatient, $searchResult) {
	$this->searchResult[$idPatient] = $searchResult;
    }

    public function removeSearchResult() {
	$this->searchResult->remove();
    }

    public function getCurentPatient() {
	return $this->curentPatient['curentPatient'];
    }

    public function setCurentPatient($curentPatient) {
	$this->curentPatient['curentPatient'] = $curentPatient;
    }

    public function getFamilyAnamnesis() {
	return $this->familyAnamnesis['familyAnamnesis'];
    }

    public function setFamilyAnamnesis($familyAnamnesis) {
	$this->familyAnamnesis['familyAnamnesis'] = $familyAnamnesis;
    }

}

?>
